home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / mount.z / mount
Encoding:
Text File  |  2001-04-17  |  18.5 KB  |  397 lines

  1.  
  2.  
  3.  
  4. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mount, umount - mount and unmount filesystems
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      mmmmoooouuuunnnntttt
  13.      mmmmoooouuuunnnntttt [ ----MMMM altmtab ] [ ----PPPP prefix ] ----pppp
  14.      mmmmoooouuuunnnntttt [ ----hhhh host ] [ ----ffffnnnnrrrrvvvv ]
  15.      mmmmoooouuuunnnntttt ----aaaa[ccccffffnnnnvvvvCCCC] [ ----tttt type ] [ ----TTTT list ] [----mmmm numprocs ]
  16.      mmmmoooouuuunnnntttt [ ----ccccffffnnnnvvvvCCCC ] [ ----tttt type ] [ ----TTTT list ] [ ----bbbb list ]
  17.      mmmmoooouuuunnnntttt [ ----ccccffffnnnnrrrrvvvvCCCC ] [ ----tttt type ] [ ----TTTT list ] [ ----oooo options ] fsname dir
  18.      mmmmoooouuuunnnntttt [ ----ccccffffnnnnrrrrvvvvCCCC ] [ ----oooo options ] fsname | dir
  19.  
  20.      uuuummmmoooouuuunnnntttt ----aaaa[kkkkvvvv] [ ----tttt type ] [----mmmm numprocs ] [ ----TTTT list ]
  21.      uuuummmmoooouuuunnnntttt ----hhhh host [ ----kkkkvvvv ] [----mmmm numprocs ] [ ----bbbb list ]
  22.      uuuummmmoooouuuunnnntttt [ ----kkkkvvvv ] fsname | dir [ fsname | dir ]  ...
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      _m_o_u_n_t attaches a named filesystem _f_s_n_a_m_e to the filesystem hierarchy at
  26.      the pathname location _d_i_r.  The directory _d_i_r must already exist.  It
  27.      becomes the name of the newly mounted root.  The contents of _d_i_r are
  28.      hidden until the filesystem is unmounted.  If _f_s_n_a_m_e is of the form
  29.      host:path, the filesystem type is assumed to be nnnnffffssss.
  30.  
  31.      _u_m_o_u_n_t unmounts a currently mounted filesystem, which can be specified
  32.      either as a mounted-on directory or a filesystem.
  33.  
  34.      _m_o_u_n_t and _u_m_o_u_n_t maintain a table of mounted filesystems in /_e_t_c/_m_t_a_b,
  35.      described in _m_t_a_b(4).  If invoked without an argument, _m_o_u_n_t displays the
  36.      table.  If invoked with only one of _f_s_n_a_m_e or _d_i_r, _m_o_u_n_t searches the
  37.      file /_e_t_c/_f_s_t_a_b (see _f_s_t_a_b(4)) for an entry whose _d_i_r or _f_s_n_a_m_e field
  38.      matches the given argument.  For example, if this line is in /_e_t_c/_f_s_t_a_b:
  39.  
  40.           ////ddddeeeevvvv////uuuussssrrrr  ////uuuussssrrrr  xxxxffffssss  rrrrwwww  0000 0000
  41.  
  42.      then the commands mmmmoooouuuunnnntttt ////uuuussssrrrr and mmmmoooouuuunnnntttt ////ddddeeeevvvv////uuuussssrrrr are shorthand for
  43.      mmmmoooouuuunnnntttt ////ddddeeeevvvv////uuuussssrrrr ////uuuussssrrrr.
  44.  
  45. MMMMOOOOUUUUNNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS
  46.      ----aaaa        Attempt to mount all the filesystems described in /_e_t_c/_f_s_t_a_b.
  47.                (In this case, _f_s_n_a_m_e and _d_i_r are taken from /_e_t_c/_f_s_t_a_b.)  If a
  48.                type is specified with ----tttt,,,, all of the filesystems in /_e_t_c/_f_s_t_a_b
  49.                with that type are mounted.  Multiple types may be specified
  50.                with the ----TTTT option.  Filesystems are not necessarily mounted in
  51.                the order listed in /_e_t_c/_f_s_t_a_b.  If the ----mmmm option is specified,
  52.                its argument is used to limit the number of processes used to
  53.                mount all of the file systems in parallel.
  54.  
  55.      ----bbbb _l_i_s_t   (all-but)  Attempt to mount all of the filesystems listed in
  56.                /_e_t_c/_f_s_t_a_b except for those associated with the directories
  57.                contained in _l_i_s_t.  _l_i_s_t consists of one or more directory
  58.                names separated by commas.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      ----cccc        Invoke _f_s_s_t_a_t(1M) on each filesystem being mounted, and if it
  75.                indicates that the filesystem is dirty, call _f_s_c_k(1M) to clean
  76.                the filesystem.  _f_s_c_k is passed the ----yyyy option.  This option
  77.                applies only to EFS filesystems, not to XFS filesystems.
  78.  
  79.      ----ffff        Fake a new /_e_t_c/_m_t_a_b entry, but do not actually mount any
  80.                filesystems.
  81.  
  82.      ----hhhh _h_o_s_t   Mount all filesystems listed in /_e_t_c/_f_s_t_a_b that are remote-
  83.                mounted from _h_o_s_t.
  84.  
  85.      ----mmmm _n_u_m_p_r_o_c_s
  86.                Use no more than _n_u_m_p_r_o_c_s processes to mount the specified file
  87.                systems in parallel.  The default number of processes used is
  88.                16.  This option is only meaningful when used in conjunction
  89.                with the ----aaaa option.
  90.  
  91.      ----nnnn        Mount the filesystem without making an entry in /_e_t_c/_m_t_a_b.
  92.  
  93.      ----oooo _o_p_t_i_o_n_s
  94.                Specify _o_p_t_i_o_n_s, a list of comma-separated words, described in
  95.                _f_s_t_a_b(4).
  96.  
  97.      ----pppp        Print the list of mounted filesystems in a format suitable for
  98.                use in /_e_t_c/_f_s_t_a_b.
  99.  
  100.      ----rrrr        Mount the specified filesystem read-only.  This is a shorthand
  101.                for:
  102.  
  103.                     mmmmoooouuuunnnntttt ----oooo rrrroooo _f_s_n_a_m_e _d_i_r
  104.  
  105.                Physically write-protected and magnetic tape filesystems must
  106.                be mounted read-only, or errors occur when access times are
  107.                updated, whether or not any explicit write is attempted.
  108.  
  109.      ----tttt _t_y_p_e   The next argument is the filesystem type.  The accepted types
  110.                are pppprrrroooocccc, eeeeffffssss, xxxxffffssss, nnnnffffssss, ffffdddd, ccccaaaacccchhhheeeeffffssss, ddddoooossss, hhhhffffssss and iiiissssoooo9999666666660000; see
  111.                _f_s_t_a_b(4) and the _f_i_l_e_s_y_s_t_e_m_s(4) man page for more information
  112.                on the supported filesystem types.  for a description of these
  113.                filesystem types.  When this option is used, mount calls
  114.                another program of the form _m_o_u_n_t_ttttyyyyppppeeeennnnaaaammmmeeee, where typename is
  115.                one of the above types.  This program must be on the default
  116.                path.
  117.  
  118.      ----TTTT _l_i_s_t   The next argument is a comma-separated list of filesystem
  119.                types.  This option is usually used in combination with ----aaaa or
  120.                ----bbbb.
  121.  
  122.      ----vvvv        (verbose)  _m_o_u_n_t displays a message indicating the filesystem
  123.                being mounted and any problems encountered.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      ----MMMM _a_l_t_m_t_a_b
  141.                Instead of /_e_t_c/_m_t_a_b, use the mtab or fstab _a_l_t_m_t_a_b.
  142.  
  143.      ----PPPP _p_r_e_f_i_x Used with the ----pppp option, prepends _p_r_e_f_i_x to the emitted
  144.                _f_i_l_e_s_y_s_t_e_m and _d_i_r_e_c_t_o_r_y paths.  Doesn't alter pathnames
  145.                embedded in the options, such as the filesystem's rrrraaaawwww=_p_a_t_h raw
  146.                device pathname.
  147.  
  148. UUUUMMMMOOOOUUUUNNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS
  149.      ----aaaa        Attempt to unmount all the filesystems currently mounted
  150.                (listed in /_e_t_c/_m_t_a_b).  In this case, _f_s_n_a_m_e is taken from
  151.                /_e_t_c/_m_t_a_b.
  152.  
  153.                NNNNOOOOTTTTEEEE:  The use of uuuummmmoooouuuunnnntttt ----aaaa is _N_O_T symmetric with mmmmoooouuuunnnntttt ----aaaa,
  154.                because the first is based on the mmmmttttaaaabbbb file, while the second
  155.                is based on the ffffssssttttaaaabbbb file.  Typical differences are the ////pppprrrroooocccc,
  156.                ////hhhhwwww, and ////ddddeeeevvvv////ffffdddd filesystems.
  157.  
  158.      ----bbbb _l_i_s_t   (all-but)  Attempt to unmount all of the filesystems currently
  159.                mounted except for those associated with the directories
  160.                contained in _l_i_s_t.  _l_i_s_t consists of one or more directory
  161.                names separated by commas.  Using
  162.  
  163.                     umount -a
  164.  
  165.                itself is not usually a good idea, because it can not be
  166.                reversed by the command
  167.  
  168.                     mount -a
  169.  
  170.                since a number of filesystems are often not in the /_e_t_c/_f_s_t_a_b
  171.                file.  Among these are the _p_r_o_c and _f_d filesystems.  Instead,
  172.                use a command similar to
  173.  
  174.                     umount -T xfs,efs
  175.  
  176.      ----hhhh _h_o_s_t   Unmount all filesystems listed in /_e_t_c/_m_t_a_b that are remote-
  177.                mounted from _h_o_s_t.
  178.  
  179.      ----mmmm _n_u_m_p_r_o_c_s
  180.                Use no more than _n_u_m_p_r_o_c_s processes to unmount the specified
  181.                file systems in parallel.  The default number of processes used
  182.                is 16.  This option is only meaningful when used in conjunction
  183.                with the ----aaaa,,,, ----tttt or ----hhhh options.
  184.  
  185.      ----kkkk        Attempt to kill processes that have open files or current
  186.                directories in the appropriate filesystems and then unmount
  187.                them.
  188.  
  189.      ----tttt _t_y_p_e   Unmount all filesystems of a given filesystem type.  The
  190.                accepted types are pppprrrroooocccc, eeeeffffssss, xxxxffffssss, nnnnffffssss, ffffdddd, ccccaaaacccchhhheeeeffffssss, ddddoooossss, hhhhffffssss,
  191.                and iiiissssoooo9999666666660000.
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      ----TTTT _l_i_s_t   Unmount all filesystems whose type is in the comma-separated
  207.                list given.
  208.  
  209.      ----vvvv        (verbose)  _u_m_o_u_n_t displays a message indicating the filesystem
  210.                being unmounted and any problems encountered.
  211.  
  212.      ----CCCC        Disable overlapping partition/volume checks.
  213.  
  214.                By default _m_o_u_n_t checks to see if the destination partition or
  215.                logical volume overlaps any mounted or reserved partitions in
  216.                the system.  If an overlap or mount conflict is found, the user
  217.                will be notified and prevented from potentially corrupting the
  218.                existing data.  For systems with a large number of disks, this
  219.                additional checking may add noticable overhead to the command's
  220.                execution time.  For situations where command performance is
  221.                necessary, this switch may be used to disable the safeguards.
  222.                Due to the potential for user-error causing corrupted
  223.                filesystems or other on-disk data corruption, we strongly
  224.                discourage use of this switch in normal operation.
  225.  
  226. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  227.      mount /dev/usr /usr             mount a local disk
  228.      mount -avt xfs                  mount all xfs filesystems; be verbose
  229.      mount -t nfs server:/d /net/d   mount remote filesystem
  230.      mount server:/d /net/d          same as above
  231.      mount -o soft server:/d /net/d  same as above but soft mount
  232.      mount -p > /etc/fstab           save current mount state
  233.      mount -t dos /dev/rdsk/fds0d2.3.5 /floppy
  234.                                      mount a MS-DOS floppy
  235.      mount -t hfs /dev/rdsk/fds0d3.3.5hi /floppy
  236.                                      mount a Macintosh HFS floppy
  237.      mount -t hfs /dev/rdsk/dks0d7vol /cdrom
  238.                                      mount an HFS CD-ROM
  239.      mount -t iso9660 /dev/rdsk/dks0d7vol /cdrom
  240.                                      mount an ISO 9660 CD-ROM
  241.      mount server:/cdrom /net/cdrom  mount remote iso9660 filesystem
  242.      mount -M /root/etc/fstab -P /root -p |
  243.          sed 's;raw=/;raw=/root/' >> /etc/fstab
  244.                                      append /root/etc/fstab with /root
  245.                                      prefix to currently active fstab.
  246.      umount -t nfs -b /foo           unmount all nfs filesystems except /foo
  247.  
  248.      TTTTRRRRIIIIXXXX SSSSppppeeeecccciiiiffffiiiicccc
  249.      mount -o eag:mac-ip=dblow:mac-default=userlow,doxattr,nodefxattr \
  250.          host:/data /imported
  251.                                      Mount host:/data from a Trusted Irix
  252.                                      system.
  253.                                      dblow MAC will be used for NFS IP sockets,
  254.                                      userlow MAC will be given to files
  255.                                      if 'host' does not support MAC.
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  269.  
  270.  
  271.  
  272. EEEERRRRRRRROOOORRRR MMMMEEEESSSSSSSSAAAAGGGGEEEESSSS
  273.      From _m_o_u_n_t:
  274.  
  275.           mount: device on _m_o_u_n_t_d_i_r: Invalid argument
  276.  
  277.  
  278.           This message appears for a wide variety of problems.  It doesn't
  279.           usually indicate that you have specified the command line
  280.           incorrectly; rather that there is something wrong with the disk
  281.           partition, the filesystem in the disk partition, or the mount
  282.           directory.  For example, this error message occurs if you try to
  283.           mount a device that doesn't contain a valid filesystem.
  284.  
  285.      From _u_m_o_u_n_t:
  286.  
  287.           _m_o_u_n_t_d_i_r: Resource busy
  288.  
  289.  
  290.           Possible causes of a this message are: open files in the filesystem,
  291.           programs being executed from the filesystems, and users whose
  292.           current directory is in the filesystem.
  293.  
  294.           Usually it is not possible to unmount the /_u_s_r filesystem because
  295.           many daemons, such as /_u_s_r/_l_i_b/_l_p_s_c_h_e_d, /_u_s_r/_e_t_c/_y_p_b_i_n_d, and
  296.           /_u_s_r/_e_t_c/_s_y_s_l_o_g_d, execute from the /_u_s_r filesystem.  The simplest
  297.           way to make sure the /_u_s_r filesystem is not busy is to bring the
  298.           system down to single-user mode with the _s_i_n_g_l_e(1M) command.
  299.  
  300.           You can force all filesystems except the root filesystem to be
  301.           unmounted with the _u_m_o_u_n_t ----kkkk option (note that this kills
  302.           processes).  To unmount the root filesystem, you must be running the
  303.           miniroot.
  304.  
  305. FFFFIIIILLLLEEEESSSS
  306.      /etc/fstab     filesystem table
  307.      /etc/mtab mount table
  308.      /etc/mntproc   script to mount /proc
  309.  
  310. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  311.      fsck(1M), mountd(1M), nfsd(1M), mount(2), umount(2), filesystems(4),
  312.      fstab(4), mtab(4).
  313.  
  314. BBBBUUUUGGGGSSSS
  315.      _u_m_o_u_n_t can mismanage the /_e_t_c/_m_t_a_b mount table if another _m_o_u_n_t or _u_m_o_u_n_t
  316.      call is in progress at the same time.
  317.  
  318.      Mount calls another "helper" program of the form mmmmoooouuuunnnntttt____ttttyyyyppppeeeennnnaaaammmmeeee, where
  319.      typename is one of the accepted mount types.  If this program is not on
  320.      the default path, then mount returns with an error message about unknown
  321.      filesystem.  The user must make sure that the helper mount program is in
  322.      the path.  For example, /_u_s_r/_e_t_c must be in the path to mount an iso9660
  323.      CD.
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. mmmmoooouuuunnnntttt((((1111MMMM))))                                                            mmmmoooouuuunnnntttt((((1111MMMM))))
  335.  
  336.  
  337.  
  338. NNNNOOOOTTTTEEEE
  339.      If the directory on which a filesystem is to be mounted is a symbolic
  340.      link, the filesystem is mounted on tttthhhheeee ddddiiiirrrreeeeccccttttoooorrrryyyy ttttoooo wwwwhhhhiiiicccchhhh tttthhhheeee ssssyyyymmmmbbbboooolllliiiicccc
  341.      lllliiiinnnnkkkk rrrreeeeffffeeeerrrrssss,,,, rather than being mounted on top of the symbolic link
  342.      itself.
  343.  
  344.      The helper program mmmmoooouuuunnnntttt____iiiissssoooo9999666666660000 is in the optional package _e_o_e._s_w._c_d_r_o_m.
  345.      This package must be installed in order to mount iso9660 filesystems.
  346.  
  347.      The mount command attempts to assure that the blocksize of the device
  348.      matches that specified in the device volume header.
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.